<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../common/common.jsp"%>   
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>订单评论</title>
        <link rel="stylesheet" href="${ctx }/css/layui.css">
		<script type="text/javascript" src="${ctx }/js/layer-v1.9.2/layer/layer.js"></script>
        <script type="text/javascript" src="${ctx}/js/layer-v1.9.2/layer/layui.js"></script>
		<script type="text/javascript" src="${ctx }/js/order/comment.js"></script>
		<script type="text/javascript">		
/* 		var _t;  
		window.onbeforeunload = function(){  
		    setTimeout(function(){_t = setTimeout(onunloadcancel, 0)}, 0);  
		    return "真的离开?";  
		}  
		window.onunloadcancel = function(){  
		    clearTimeout(_t);  
		    //将用户没有完成的评论信息(如图片信息)
		   // deleteCommentsByIds();
		    if (confirm("数据将被重置,确定刷新吗？")) {
			    //将用户没有完成的评论信息(如图片信息)
			   // deleteCommentsByIds();
	            return true;   
	        } else  {
	            return false; 
	            windows.stop();
	        }             
		}    */
		
		
		</script>		
</head>
	<body  >
		<div class="add_comment c_omment container">
			<div class="top">
				<span class="red f18">评价宝贝</span>
				<span class="r">卖家：<a href="javascript:;">${shopName }</a></span>
			</div>
			<input type="hidden" name="orderId" value="${orderId}"/>
			<c:forEach var="product" items="${products}">
				<div class="inner clearfix" id="${product.productId }">
			         <input type="hidden" name="specInfo" value="${product.goods_sku_info}"/>
			         <input type="hidden" name="goodsId" value="${product.productId}"/>
			         <input type="hidden" name="commentId" value=""/>
					<div class="left l">
						<a href="${ctx }/goods/queryGoodsDetail?id=${product.productId }">
							<img src="<c:if test='${not empty product.picture }'>${product.picture }</c:if><c:if test='${empty product.picture }'>${ctx }/images/more1.png</c:if>" alt="${product.productName }" />
							<p>${product.productName }</p>
							<p>(<c:if test='${not empty product.goods_sku_info }'>${product.goods_sku_info }</c:if><c:if test='${empty product.goods_sku_info }'>无规格信息</c:if>)</p>
							<p>￥${product.marketPrice }</p>
						</a>
					</div>
					<div class="right l">
						<p class="eval">
							<span><input type="radio" name="${product.productId }" value="3" checked/>&nbsp;好评</span>
							<span><input type="radio" name="${product.productId }" value="2"/>&nbsp;中评</span>
							<span><input type="radio" name="${product.productId }" value="1"/>&nbsp;差评</span>
						</p>
						<div class="nine"> 
							<textarea name="consultContent" rows="15" cols="100" placeholder="宝贝满足你的期待吗？说说你的使用心得，分享给想买的他们吧"></textarea>
							<div class="sun_photo">
							       <input type="file" name="files" id="filePath${product.productId }"   multiple="multiple" accept="image/jpg,image/jpeg,image/png" />
								   <p class="l"><img src="${ctx }/images/pic.png" alt="" />晒照片</p>
							    	<!-- <span class="r">
										<input type="radio" name="way" value="oppen"/>公开
										<input type="radio" name="way" value="pri" checked/>匿名
									</span> -->
							</div>
							<p class="show_pic">
								
							</p>
						</div>
					</div>
				</div>
				<div class="star">
					<p class="goodsScore">宝贝评分
						<span>
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
						</span>
					</p>
					<p class="serviceScore">服务评分
						<span>
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
						</span>
					</p>
					<p class="wuLiuScore">物流评分
						<span>
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
							<img src="${ctx }/images/pj2.png" alt="" />
						</span>
					</p>
				</div>
			</c:forEach>
			<button>提交评论</button>
		</div>

		<!--猜你喜欢     标签开始-->
		<%@include file="like_goods.jsp"%>
		<!--猜你喜欢     标签结束-->
		<%@include file="../common/bottom.jsp"%>
		<script type="text/javascript" src="${ctx }/js/ajaxfileupload.js"></script>
	</body>
</html>
